CXX=g++

all: minichess

minichess: main.o functions.o
	$(CXX) -g main.o functions.o Move.o -o ../bin/minichess

main.o: main.cpp data.h functions.h includes.h
	$(CXX) -g -c $(CFLAGS) main.cpp

functions.o: functions.cpp functions.h data.h includes.h Move.o
	$(CXX) -g -c $(CFLAGS) functions.cpp

Move.o: Move.cpp Move.h data.h includes.h
	$(CXX) -g -c $(CFLAGS) Move.cpp

clean: 
	$(RM) *.o

